<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<html>
<head>
  <title>管理系统主窗口</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="/static/bootstrap-4.6.2-dist/css/bootstrap.min.css">

</head>
<body>
<%--加入session中用户名是否登录判断--%>
<% if(session.getAttribute("username")==null) {
  response.sendRedirect("/");}
%>
<div class="container container-fluid">
  <%-- 顶部区域   --%>
  <div class="row h-10 bg-info" >
    <div class="col-3">
      <img src="/static/img/logo.png" alt="" height="60px">
      我们的超市
    </div>
    <div class="col-6"></div>
    <div class="col-3">
      当前用户: <%=session.getAttribute ("username")%>
      <a class="btn btn-danger" href="/logout">退出</a>
    </div>
  </div>
  <%--    主体区域--%>
  <div class="row h-100">
    <div class="col-3 bg-light pl-0 pr-0">
      <a href="/goods" class="list-group-item active">商品信息</a>
      <a href="/sales" class="list-group-item">销售管理</a>
      <a href="/inventory" class="list-group-item">进货管理</a>
      <a href="/category" class="list-group-item">商品分类</a>
      <a href="/supplier" class="list-group-item">供应商管理</a>
      <a href="/sysuser" class="list-group-item">系统用户管理</a>
    </div>